# -*- coding: utf-8 -*-
__author__ = 'ggcall'
import requests

url='http://www.npedi.com/edi/ediweb/jcaptcha.jpg'

for x in range(1000,9999):
    r=requests.get(url)
    with open('train\\%s.jpg'%x, 'wb') as f1:
        f1.write(r.content)
    print x